import request from '@/utils/request'

// 查询客户资产码行列表
export function listLine(query) {
  return request({
    url: '/mes/md/assetsline/list',
    method: 'get',
    params: query
  })
}

// 查询客户资产码行详细
export function getLine(id) {
  return request({
    url: '/mes/md/assetsline/' + id,
    method: 'get'
  })
}

// 新增客户资产码行
export function addLine(data) {
  return request({
    url: '/mes/md/assetsline',
    method: 'post',
    data: data
  })
}

// 修改客户资产码行
export function updateLine(data) {
  return request({
    url: '/mes/md/assetsline',
    method: 'put',
    data: data
  })
}

// 删除客户资产码行
export function delLine(id) {
  return request({
    url: '/mes/md/assetsline/' + id,
    method: 'delete'
  })
}
